﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Writearea();
            WriteSum();
            Writeyaungong();
        }

        static void Writeyaungong()
        {
            Console.WriteLine("按回车");
            Employees employees = new Employees("0123", "张三", "管理");
            employees.Write();

        }
        static void Writearea()
        {
            

            Jisuan jisuan = new Jisuan();

            Console.WriteLine("长方形的面积是{0}", jisuan.Mianji(3.14, 4));
            Console.WriteLine("圆的面积为{0}", jisuan.Mianji(4, 5));
        }
        static void WriteSum()
        {
            SumUtils sumUtils = new SumUtils();

            Console.WriteLine("两个整数相加为{0}", sumUtils.Sum(2, 2));
            Console.WriteLine("两个小数相加为{0}", sumUtils.Sum(2.5, 2.5));
            Console.WriteLine("两个字符串相加{0}", sumUtils.Sum("adwa", "fgw12"));
            //Console.WriteLine("从 1 到指定整数的和为{}",sumUtils.Sum(5));不成功
            Console.WriteLine("请输入一个整数：");
            int a3 = 0;
            sumUtils.Sum(a3);
            a3 = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("1到" + a3 + "的和为：" + sumUtils.Sum(a3));
            Console.ReadKey();
        }

    }
}
